﻿using System.Collections.Generic;

namespace CardsSimulator
{
    class Player
    {
        public List<Component> Components { get;  set; }

        public MessageTransmitter Transmitter { get; set; }

        public Player()
        {
            Components = new List<Component>();
        }

        public void MakeAMove(Component sourceComponent, Component destinationComponent, Card card)
        {
            sourceComponent.Cards.Remove(card);
            destinationComponent.Cards.Add(card);
            GameState move  = new GameState(CardGame.currentGame.Players,CardGame.currentGame.Desk);

            Transmitter.SendMessage(move);
        }
    
    }
}
